package com.liyi.dao;

import java.util.List;

import com.zero.basic.dao.IBaseDao;
import com.zero.basic.exception.SmsDaoException;
import com.zero.mms.model.Dep;

public interface DepDao extends IBaseDao<Dep> {
	
	/* 获取 所有部门 */
	public List<Dep> getAllDeps() throws SmsDaoException;
	
	/* 获取 [部门] 及其所有子部门 id */
	public List<Integer> getChildDepsByParentId(Integer depId) throws SmsDaoException;
	
	/* 根据 [部门]id 获取 [部门]名称 */
	public String getDepNameByDepId(Integer depId) throws SmsDaoException;

}